<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/1/18
 * Time: 16:02
 * name:新增用户绩效关联信息
 * url:/erpEnterpriseStructure/add_achievement_user_middle
 */

$oaum_uid   = $route->bodyParams['oaum_uid']; //用户id
$oaum_oacid   = $route->bodyParams['oaum_oacid']; //绩效配置id
$oaum_user_position   = $route->bodyParams['oaum_user_position']; //员工身份

//写入数组
$insertArr = [
    'oaum_uid'   =>$oaum_uid,
    'oaum_oacid' =>$oaum_oacid,
    'oaum_user_position' =>$oaum_user_position,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_achievement_user_middle",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );